import java.text.SimpleDateFormat;
import java.util.Date;

public class Hello {

        public static void main(String[] args) {
                System.out.println("Hello World!");
                Dog dog = new Dog("小明");
                dog.running();
                dog.eatting();
                System.out.println(dog.name);
                Dog dogA = new Dog();

                System.out.println();
                System.out.println();

                ///Byte
                System.out.println("基本类型 byte 二进制位数:" + Byte.SIZE);
                System.out.println("包装类:java.lang.Byte");
                System.out.println("最小值:Byte.MIN_VALUE=" + Byte.MIN_VALUE);
                System.out.println("最大值:Byte.MAX_VALUE=" + Byte.MAX_VALUE);
                System.out.println();

                ///short
                System.out.println("基本类型 short 二进制位数:" + Short.SIZE);
                System.out.println("包装类:java.lang.Short");
                System.out.println("最小值:Short.MIN_VALUE=" + Short.MIN_VALUE);
                System.out.println("最大值:Short.MAX_VALUE=" + Short.MAX_VALUE);
                System.out.println();

                java.util.Date nowDate = new java.util.Date();

                SimpleDateFormat f1 = new SimpleDateFormat("yyyy-MM-dd HH:mm");

                String nowDateStr = f1.format(nowDate);

                System.out.println(nowDateStr);

                Date today = new Date();

                SimpleDateFormat f2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

                String todayStr = f2.format(today);

                System.out.println(todayStr);

                Caution caute = new  Caution();
                caute.jiSuan();

                StringBuffer nameBuf = new StringBuffer("开始阶段:");
                nameBuf.append("阶段1-");
                nameBuf.append(2);
                nameBuf.append('A');
                nameBuf.reverse();
                System.out.println(nameBuf.toString());


                double[] myList = {1.9,1.8,2.0,3.8};
                for (double x :
                        myList) {
                        System.out.println("测试数组:"+x);
                }


        }
}

